<template>
	<view class="classLayout pageBg">
		<!-- 自定义头部导航 -->
		<custom-nav-bar title="分类"></custom-nav-bar>
		<view class="classify">
			<theme-item v-for="item in classifyList" :item="item"></theme-item>
		</view>
		
	</view>
</template>

<script setup>
import { ref } from 'vue';
import {apiGetClassify} from '@/api/apis.js'

const classifyList = ref([])

//获取分类
const getClassify = async ()=>{
	let res = await apiGetClassify({
		pageSize: 15
	})
	classifyList.value = res.data
}

getClassify()
</script>

<style lang="scss">
.classify{
	padding: 30rpx;
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 15rpx;
}
</style>
